package it.polimi.swKnights.SWIMv2.ejb.searchEngine;

import it.polimi.swKnights.SWIMv2.ejb.exceptions.InvalidLoginPrivilegesException;
import it.polimi.swKnights.SWIMv2.ejb.exceptions.LoginFailException;

import java.util.List;
import java.util.Map;

import javax.ejb.Remote;

@Remote
public interface FriendSearchRemote
{


	/**
	 * Look for all friends of the username (object attribute) who fits some conditions
	 * specified int the query 
	 * used for normal friend search
	 * 
	 * @param userName   the asker
	 * @param password
	 * @param Query		
	 * @return		 list of  ID_Cards of the friends with such conditions
	 * @throws LoginFailException
	 * @throws InvalidLoginPrivilegesException
	 */
	List<Map<String, String>> searchAmongFriends(String userName,
			String password, String Query) throws LoginFailException,
			InvalidLoginPrivilegesException;

}
